package com.jxl.service.impl;

import com.jxl.common.constant.StatusConstant;
import com.jxl.mapper.DailyWarmPostMapper;
import com.jxl.pojo.vo.DailyWarmPostVO;
import com.jxl.service.DailyWarmPostService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class DailyWarmPostServiceImpl implements DailyWarmPostService {

    @Autowired
    private DailyWarmPostMapper dailyWarmPostMapper;
    /**
     * 获取所有每日暖帖
     * @return
     */
    @Override
    public List<DailyWarmPostVO> getAllDailyWarmPosts() {
        return dailyWarmPostMapper.getAllDailyWarmPosts(StatusConstant.ENABLE);
    }


}
